import request from "@/utils/request";
var baseUrl = '/admin/evec/'

export function getAllEvent(data) {
  return request({
    url: baseUrl+'list',
    method: 'post',
    data: data
  })
}

export function changeEvent(id) {
  return request({
    url: baseUrl+'change',
    method: 'post',
    params: {id}
  })
}

export function saveEvent(data) {
  return request({
    url: baseUrl+'add',
    method: 'post',
    data: data
  })
}

export function deleteEvent(id) {
  return request({
    url: baseUrl+'delete',
    method: 'post',
    params: {id}
  })
}
